package cn.eeepay.framework.service.unTransactionalImpl.job;

import cn.eeepay.framework.service.AccountAddressTaskService;
import cn.eeepay.framework.service.JumpRouteQuotaLogService;
import cn.eeepay.framework.service.unTransactionalImpl.abstractJob.ScheduleJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

//账单地额度自动生效
@Component
@Scope("prototype")
public class AccountAddressAmountEffectiveJob extends ScheduleJob {

    private static final Logger log = LoggerFactory.getLogger(AccountAddressAmountEffectiveJob.class);

    @Autowired
    private AccountAddressTaskService accountAddressTaskService;

    @Override
    protected void runTask(String runNo) {
        log.info("账单地额度自动生效开始...,runningNo:{}",runNo);
        accountAddressTaskService.autoEffective();
        log.info("账单地额度自动生效结束...,runningNo:{}",runNo);
    }
}
